package com.qiangua.lixin.qianguakeji;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

/**
 * Created by Administrator on 2015/8/6 0006.
 */
public class SlidingMenu extends Activity{
    private RelativeLayout relativeLayout1,relativeLayout2,relativeLayout3,relativeLayout4;
    private Intent intent;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.left_menu);
        relativeLayout1 = (RelativeLayout) findViewById(R.id.rl_st);
        relativeLayout2 = (RelativeLayout) findViewById(R.id.rl_xx);
        relativeLayout3 = (RelativeLayout) findViewById(R.id.rl_gl);
        relativeLayout4 = (RelativeLayout) findViewById(R.id.rl_tc);

        relativeLayout1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                intent = new Intent(SlidingMenu.this,TheActivity.class);
                startActivity(intent);
            }
        });
        relativeLayout2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               intent = new Intent(SlidingMenu.this,Message.class);
                startActivity(intent);
            }
        });

        relativeLayout3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                intent = new Intent(SlidingMenu.this,SetActivity.class);
                startActivity(intent);
            }
        });
        relativeLayout4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {


                finish();
                System.exit(0);
            }
        });
    }
}

